<if condition="$data['readonly']">
	<div style="position:relative;">
		<input id="add_file_{$data.id}" class="add_file" type="hidden" name="udf_field_{$data.id}" value="{$data.val}" >
		<if condition="!empty($file_list)">
			<ul class="file_list" id="file_list" >
				<foreach name="file_list" val="file">
					<li class="tbody" id="{$file.id|think_encrypt}" add_file="{$file.id|think_encrypt}" size="{$file.size}" filename="{$file.name}">
						<div class="loading"></div>
						<div class="data">
							<span class="del text-center"> <a class="link down" target="_blank" href="{:U('down?attach_id='.think_encrypt($file['id']))}">下载</a> </span>
							<span class="size" >{$file.size|reunit}</span>
							<span class="auto autocut" title="{$file.name}">{$file.name} </span>
						</div>
					</li>
				</foreach>
			</ul>
		</if>
	</div>
	<else/>
	<div class="uploader" id="uploader_{$id}" add_file_id="{$id}">
		<input id="add_file_{$id}" class="add_file" type="hidden" name="udf_field_{$id}" value="{$val}" >
		<a id="btn_{$id}" href="javascript:;" class="btn btn-normal">添加附件</a>
		<ul class="file_list" new_upload="" >
			<if condition="!empty($file_list)">
				<foreach name="file_list" val="file">
					<li class="tbody" id="{$file.id|think_encrypt}" add_file="{$file.id|think_encrypt}" size="{$file.size}" filename="{$file.name}">
						<div class="loading"></div>
						<div class="data">
							<span class="del text-center"><a class="link del">删除</a> </span>
							<span class="size" >{$file.size|reunit}</span>
							<span class="auto autocut" title="{$file.name}"> <a target="_blank" href="{:U('down?attach_id='.think_encrypt($file['id']))}">{$file.name}</a> </span>
						</div>
					</li>
				</foreach>
			</if>
		</ul>
	</div>
</if>
